package com.hello.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("posts") //指定数据库表名posts
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long hostId;
    private Integer postOrder;
    private String text;
    private LocalDateTime postTime;
    private Integer forwardingNum;
    private String imageUrl;
    private String title;

}
